package com.bstek.u.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * jpolite2测试模块控制器
 * 
 * @author Andy
 *
 */
@Controller
public class JpoliteController {

	@GetMapping("/")
	public String index() {
		return "jpolite/index";
	}

	@GetMapping("/2")
	public String index2() {
		return "jpolite/index2";
	}

	@GetMapping("/menu")
	public String menu() {
		return "jpolite/menu";
	}

	@GetMapping("/splash")
	public String splash() {
		return "jpolite/splash";
	}

	@GetMapping("/modules/{id}")
	public String module(@PathVariable String id) {
		System.out.println("----" + id);
		return "jpolite/modules/" + id;
	}

}
